import {CALL_API} from "../middleware/api";

export const pwdLogin= (filter = {},url) => ({
  [CALL_API]: {
    types: ["PWDLOGIN_REQUEST", "PWDLOGIN_SUCCESS", "PWDLOGIN_FAIL"],
    endpoint: url,
    body: filter,
    method: "POST"
  }
})
export const Login = (opt) => (dispatch, getState) => {
  return dispatch({
    type: "PWDLOGIN_LOGIN",
    isLogin: opt
  });
};

